#ifndef MYTHSETTINGS_H
#define MYTHSETTINGS_H

#include "mythtv/settings.h"
#include "mythtv/mythcontext.h"

class DBSettings;

class DBSetting
{
   friend class DBSettings;

public:
   QString& operator= ( const QString& s )
   {
      Value = s;
      return Value;
   }

   operator const QString& ()
   {
      return Value;
   }

private:
   DBSetting( const Setting& );
   DBSetting( const QString& settingName ) :
      Name(settingName)
   {
   }

   void Load();
   void Save();

   const QString Name;
   QString Value;
};

class DBSettings
{
public:
   DBSetting   Store;
   DBSetting   AudioDevice;

   DBSettings( const QString& appName ) :
      Store("Store"),
      AudioDevice("Device"),
      Domain(appName)
   {
   }

private:
   const QString Domain;
};

class AudioGeneralSettings : virtual public ConfigurationWizard
{
public:
    AudioGeneralSettings();
};

class AudioPlayerSettings : virtual public ConfigurationWizard
{
public:
    AudioPlayerSettings();
};

#endif
